#ifndef _VN_BLINKING_TEXT_H_
#define _VN_BLINKING_TEXT_H_

#include "..\Generic\GameTime.h"
#include "Text.h"

class BlinkingText
{
public:
	BlinkingText(unsigned int p_view, const std::string& p_string, const std::string& p_font, float p_layer = 1.0f);
	~BlinkingText(void);

	void update(const GameTime& p_gameTime);
	void setScale(float p_scale) { m_text->setScale(p_scale, p_scale); }
	void setFadeStrength(float p_value) { m_fadeStrength = p_value; }
	void setPosition(const vn::Vector2& p_position) { m_text->setPosition(p_position); }
	void setPosition(float p_x, float p_y) { m_text->setPosition(p_x, p_y); }
	void setDoRender(bool p_value);
	void setActive(bool p_value);

protected:
	vn::Text* m_text;
	float m_fadeStrength;
	short m_blinkState;
	bool m_active;
};

#endif // _VN_BLINKING_TEXT_H_